function Person() {
    this.name = "jack";
    this.age = 18;
    this.getAge = function () {
        return this.age;
    };
}
const p1 = new Person();
const a = p1.getAge();

function Person() {
    this.name = "jack";
    this.age = 18;
}
const p2 = new Person();
const b = p2.age;
